home *** CD-ROM | disk | FTP | other *** search
- // Copyright (C) 1997-2002 Alias|Wavefront,
- // a division of Silicon Graphics Limited.
- //
- // The information in this file is provided for the exclusive use of the
- // licensees of Alias|Wavefront. Such users have the right to use, modify,
- // and incorporate this code into other products for purposes authorized
- // by the Alias|Wavefront license agreement, without fee.
- //
- // ALIAS|WAVEFRONT DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
- // INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
- // EVENT SHALL ALIAS|WAVEFRONT BE LIABLE FOR ANY SPECIAL, INDIRECT OR
- // CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
- // DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
- // TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
- // PERFORMANCE OF THIS SOFTWARE.
- //
- //
- // Alias|Wavefront Script File
- // MODIFY THIS AT YOUR OWN RISK
- //
- // Creation Date: June 14, 1996
- // Author: mm
- //
- // Description:
- // This script creates popup menu items for the dope sheet editor.
- //
- // Input Arguments:
- // The dope sheet editor that the menu will belong to.
- //
- // Return Value:
- // None.
- //
-
- global proc
- DopeSheetEdMenu (string $dopeSheetEd)
- {
- // Find the name of the associated outliner
- //
- string $outlineEd = `dopeSheetEditor -query -outliner $dopeSheetEd`;
- // Load in the common menu elements library
- //
- loadAnimMenuLibrary;
- // Create the popup menu
- //
- popupMenu
- -ctrlModifier false
- -button 3
- -parent $dopeSheetEd;
-
- // Create the main menu items
- //
- menuItem -label "Edit"
- -allowOptionBoxes true
- -subMenu true
- -tearOff true
- editHierItem;
- defineEditMenu $outlineEd $dopeSheetEd "editHierItem" "noOptions" "";
- setParent -m ..;
-
- string $viewItem = `menuItem -label "View"
- -allowOptionBoxes false
- -subMenu true
- -tearOff true`;
- menuItem -edit
- -postMenuCommand ("buildDopeSheetEdViewMenu " + $dopeSheetEd + " " + $viewItem)
- $viewItem;
- setParent -menu ..;
-
- menuItem -divider true;
-
- string $curvesItem = `menuItem -label "Curves" -allowOptionBoxes true -subMenu true -tearOff true`;
- defineCurvesMenu $outlineEd $dopeSheetEd $curvesItem "noOptions" "";
- setParent -menu ..;
-
- string $keysItem = `menuItem -label "Keys" -allowOptionBoxes true -subMenu true -tearOff true`;
- buildDopeSheetEdKeysMenu $outlineEd $dopeSheetEd $keysItem;
- setParent -menu ..;
-
- string $tangentsItem = `menuItem -label "Tangents" -subMenu true -tearOff true`;
- defineTangentsMenu $outlineEd $dopeSheetEd $tangentsItem "noOptions" "";
- setParent -menu ..;
-
- menuItem -divider true;
-
- string $menuItem = `menuItem -label "List"
- -allowOptionBoxes false
- -subMenu true
- -tearOff true
- optionsHierItem`;
- defineListMenu "useHier" $outlineEd $dopeSheetEd $menuItem "";
- setParent -m ..;
- }
-